#include<stdio.h>
// 这里是stdio的函数

int main()
{
    // 1. printf和scanf

    // 数据类型
    // 1. size_t是unsigned integer type returned by the sizeof operator

    // Macros 宏
    // 1. NULL implementation-defined null pointer constant

    // 文件操作
    // 文件1，写入
    FILE *fp = fopen("../src/file_op/stdio.txt", "w");
    fputs("this is a try\n", fp);
    fclose(fp);
    
    // 文件2，读取
    int ch;
    FILE *fp1 = fopen("../src/file_op/stdio.txt", "r");
    while ((ch = getc(fp1)) != EOF)
        putchar(ch);
    fclose(fp1);
    
}